const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')

module.exports = {
  devtool: 'none',
  mode: 'development',
  entry: {
    index: './src/index.js',
    lazy: './src/lazy.js'
    // importFromCms: './src/importFromCms.js',
    // importFromEsm: './src/importFromEsm.js',
    // requireFromCms: './src/requireFromCms.js',
    // requireFromEsm: './src/requireFromEsm.js',
  },
  output: {
    filename: '[name].bundle.js',
    path: path.resolve('demo')
  },
  plugins: [
    new HtmlWebpackPlugin({
      chunks: ['index'],
      filename: 'index.html',
      template: './src/index.html'
    })
  ]
}